package com.ccbhelper.provider;

import java.util.ArrayList;
import java.util.Date;

import com.ccbhelper.util.DefinitionUtil;

import android.os.Parcel;
import android.os.Parcelable;

public class BranchQueue  implements Parcelable{
	private String id;
	private String branchNo;
	private ArrayList<String[]> type;
	private int waitNum;
	private int workNum;
	private Date updatedTime; 
	private String myNo;
	private int befroeNum;
	
	public BranchQueue(String id,String branchNo,ArrayList<String[]> type,String waitNum,String workNum,String beforeNum,String updatedTime,String myNo){
		this.id = id;
		this.branchNo = branchNo;
		this.type = type;
		this.waitNum =Integer.valueOf(waitNum);
		this.workNum = Integer.valueOf(workNum);
		this.befroeNum =Integer.valueOf(beforeNum);
		this.updatedTime  =new Date(updatedTime);
		this.myNo = myNo;
	}
	
	@Override
	public void writeToParcel(Parcel dest, int flags) {
		// TODO Auto-generated method stub
		dest.writeString(id);
		dest.writeString(branchNo);
		dest.writeList(type);
		dest.writeInt(waitNum);
		dest.writeInt(workNum);
		dest.writeInt(befroeNum);
		dest.writeString(DefinitionUtil.FM_DATE.format(updatedTime));
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getBranchNo() {
		return branchNo;
	}

	public void setBranchNo(String branchNo) {
		this.branchNo = branchNo;
	}

	public ArrayList<String[]> getType() {
		return type;
	}

	public void setType(ArrayList<String[]> type) {
		this.type = type;
	}

	public String getMyNo() {
		return myNo;
	}

	public void setMyNo(String myNo) {
		this.myNo = myNo;
	}

	public int getWaitNum() {
		return waitNum;
	}

	public void setWaitNum(int waitNum) {
		this.waitNum = waitNum;
	}

	public int getWorkNum() {
		return workNum;
	}
	
	public void setWorkNum(int workNum) {
		this.workNum = workNum;
	}

	public Date getUpdatedTime() {
		return updatedTime;
	}

	public void setUpdatedTime(Date updatedTime) {
		this.updatedTime = updatedTime;
	}

	@Override
	public int describeContents() {
		// TODO Auto-generated method stub
		return 0;
	}

	
	
}
